package com.sophialex.health.record.common;

import java.util.Comparator;

import com.sophialex.health.person.vo.HrPerson;

public class RelationCompare implements Comparator<HrPerson> {


	public int compare(HrPerson o1, HrPerson o2) {
		if(o1.getPerRelaMaster() != null && o2.getPerRelaMaster() != null){
			return o1.getPerRelaMaster().intValue() - o2.getPerRelaMaster().intValue();
		}
		return 0;
	}

}
